﻿/*****************************************************************************
 * Hyldahl.Services.TaskProcessing                 Created by: MSH 2008.07.22
 * --------------------------------------------------------------------------
 * FileName: TaskProcessingApplicationContext.cs
 * --------------------------------------------------------------------------
 * Copyright 2009 Martin Sixhøj Hyldahl
 *****************************************************************************/

namespace Hyldahl.Services.TaskProcessing
{
    public sealed class TaskProcessingApplicationContext : TaskProcessingContext
    {
        /*****************************************************
         * FIELDS
         *****************************************************/
        private static readonly TaskProcessingContext instance = new TaskProcessingApplicationContext();

        /*****************************************************
         * CONSTRUCTORS
         *****************************************************/

        /// <summary>
        /// Initializes a new instance of the <see cref="TaskProcessingApplicationContext"/> class.
        /// </summary>
        private TaskProcessingApplicationContext() { }

        /*****************************************************
         * PROPERTIES
         *****************************************************/

        /// <summary>
        /// Gets the current intance.
        /// </summary>
        /// <value>The current intance.</value>
        public static TaskProcessingContext Current
        {
            get
            {
                return instance;
            }
        }
    }
}
